package com.tencent.wxcloudrun.mapper;

import com.tencent.wxcloudrun.dto.Shippingcar;
import com.tencent.wxcloudrun.dto.Shippingcaradditions;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Entity com.tencent.wxcloudrun.dto.Shippingcaradditions
 */
@Mapper
public interface ShippingcaradditionsMapper {

    int addShippingCarAdditions(String id, String pid, String shippingcarid);

    List<Shippingcar> getShippingcar(String openid);

    /**
     * 商品附加信息
     * @param id
     * @return
     */
    @Select("select * from shippingcaradditions where goodsId=#{id}")
    List<Shippingcaradditions> getContradistinctions(Integer id);
}




